home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / sidekick.swf / scripts / DefineSprite_918 / frame_2 / DoAction.as
Text File  |  2007-10-01  |  16KB  |  476 lines

  1. var ┬º\x01┬º = 707;
  2. loop0:
  3. while(true)
  4. {
  5.    if(eval("\x01") == 707)
  6.    {
  7.       set("\x01",eval("\x01") - 215);
  8.       ┬º┬ºpush(true);
  9.       continue;
  10.    }
  11.    if(eval("\x01") == 493)
  12.    {
  13.       set("\x01",eval("\x01") + 342);
  14.       continue;
  15.    }
  16.    if(eval("\x01") == 985)
  17.    {
  18.       set("\x01",eval("\x01") - 699);
  19.       ┬º┬ºpush(true);
  20.       continue;
  21.    }
  22.    if(eval("\x01") == 123)
  23.    {
  24.       set("\x01",eval("\x01") + 26);
  25.       if(┬º┬ºpop())
  26.       {
  27.          set("\x01",eval("\x01") + 704);
  28.       }
  29.       continue;
  30.    }
  31.    if(eval("\x01") == 835)
  32.    {
  33.       set("\x01",eval("\x01") - 144);
  34.       tellTarget("/")
  35.       {
  36.          name_lang = eval("/:name_lang");
  37.          set("/:match_1_1",eval("/:player1nation"));
  38.          set("/:team_1_1_id",eval("/:player1nation_id"));
  39.          matchcount = 0;
  40.          do
  41.          {
  42.             matchcount += 1;
  43.             if(matchcount > 1)
  44.             {
  45.                do
  46.                {
  47.                   gotone = 0;
  48.                   ranvar = random(eval("/:teams"));
  49.                   test1 = eval("/:teamArray")[ranvar];
  50.                   power1 = test1[4];
  51.                   if(random(4 - power1) == 0)
  52.                   {
  53.                      nextteam = test1[name_lang];
  54.                      if(nextteam ne eval("/:match_1_1") && nextteam ne eval("/:match_1_2") && nextteam ne eval("/:match_2_1") && nextteam ne eval("/:match_2_2") && nextteam ne eval("/:match_3_1") && nextteam ne eval("/:match_3_2") && nextteam ne eval("/:match_4_1") && nextteam ne eval("/:match_4_2") && nextteam ne eval("/:match_5_1") && nextteam ne eval("/:match_5_2") && nextteam ne eval("/:match_6_1") && nextteam ne eval("/:match_6_2") && nextteam ne eval("/:match_7_1") && nextteam ne eval("/:match_7_2") && nextteam ne eval("/:match_8_1") && nextteam ne eval("/:match_8_2"))
  55.                      {
  56.                         set("_root.match_" + matchcount + "_1",nextteam);
  57.                         set("_root.team_" + matchcount + "_1_id",ranvar);
  58.                         gotone = 1;
  59.                      }
  60.                   }
  61.                }
  62.                while(gotone != 1);
  63.                
  64.             }
  65.             do
  66.             {
  67.                gotone = 0;
  68.                ranvar = random(eval("/:teams"));
  69.                test1 = eval("/:teamArray")[ranvar];
  70.                power1 = test1[4];
  71.                if(random(4 - power1) == 0)
  72.                {
  73.                   nextteam = test1[name_lang];
  74.                   if(nextteam ne eval("/:match_1_1") && nextteam ne eval("/:match_1_2") && nextteam ne eval("/:match_2_1") && nextteam ne eval("/:match_2_2") && nextteam ne eval("/:match_3_1") && nextteam ne eval("/:match_3_2") && nextteam ne eval("/:match_4_1") && nextteam ne eval("/:match_4_2") && nextteam ne eval("/:match_5_1") && nextteam ne eval("/:match_5_2") && nextteam ne eval("/:match_6_1") && nextteam ne eval("/:match_6_2") && nextteam ne eval("/:match_7_1") && nextteam ne eval("/:match_7_2") && nextteam ne eval("/:match_8_1") && nextteam ne eval("/:match_8_2"))
  75.                   {
  76.                      set("_root.match_" + matchcount + "_2",test1[name_lang]);
  77.                      set("_root.team_" + matchcount + "_2_id",ranvar);
  78.                      gotone = 1;
  79.                   }
  80.                }
  81.             }
  82.             while(gotone != 1);
  83.             
  84.          }
  85.          while(matchcount < 8);
  86.          
  87.          set("/:match_1_1",eval("/:player1nation"));
  88.          set("/:team_1_1_id",eval("/:player1nation_id"));
  89.          count = 0;
  90.          do
  91.          {
  92.             count += 1;
  93.             subcount += 1;
  94.             if(subcount > 2)
  95.             {
  96.                subcount = 1;
  97.             }
  98.             thisid1 = eval("_root.team_" + count + "_1_id");
  99.             check_a = eval("/:teamArray")[thisid1];
  100.             thisname_a = check_a[name_lang];
  101.             power_a = check_a[4];
  102.             thisid2 = eval("_root.team_" + count + "_2_id");
  103.             check_b = eval("/:teamArray")[thisid2];
  104.             thisname_b = check_b[name_lang];
  105.             power_b = check_b[4];
  106.             do
  107.             {
  108.                ranvar1 = random(4 + power_a * 2);
  109.                ranvar2 = random(4 + power_b * 2);
  110.             }
  111.             while(ranvar1 == ranvar2);
  112.             
  113.             if(eval("/:player1nation_id") == thisid1)
  114.             {
  115.                set("_root.viertelmatch_" + math.round(count * 0.5) + "_" + subcount,thisname_a);
  116.                set("_root.viertelteam_" + math.round(count * 0.5) + "_" + subcount + "_id",thisid1);
  117.             }
  118.             else if(ranvar1 > ranvar2)
  119.             {
  120.                set("_root.viertelmatch_" + math.round(count * 0.5) + "_" + subcount,thisname_a);
  121.                set("_root.viertelteam_" + math.round(count * 0.5) + "_" + subcount + "_id",thisid1);
  122.             }
  123.             else
  124.             {
  125.                set("_root.viertelmatch_" + math.round(count * 0.5) + "_" + subcount,thisname_b);
  126.                set("_root.viertelteam_" + math.round(count * 0.5) + "_" + subcount + "_id",thisid2);
  127.             }
  128.          }
  129.          while(count < 8);
  130.          
  131.          count = 0;
  132.          subcount = 0;
  133.          do
  134.          {
  135.             count += 1;
  136.             subcount += 1;
  137.             if(subcount > 2)
  138.             {
  139.                subcount = 1;
  140.             }
  141.             thisid1 = eval("_root.viertelteam_" + count + "_1_id");
  142.             check_a = eval("/:teamArray")[thisid1];
  143.             thisname_a = check_a[name_lang];
  144.             power_a = check_a[4];
  145.             thisid2 = eval("_root.viertelteam_" + count + "_2_id");
  146.             check_b = eval("/:teamArray")[thisid2];
  147.             thisname_b = check_b[name_lang];
  148.             power_b = check_b[4];
  149.             do
  150.             {
  151.                ranvar1 = random(4 + power_a * 2);
  152.                ranvar2 = random(4 + power_b * 2);
  153.             }
  154.             while(ranvar1 == ranvar2);
  155.             
  156.             if(eval("/:player1nation_id") == thisid1)
  157.             {
  158.                set("_root.halbmatch_" + math.round(count * 0.5) + "_" + subcount,thisname_a);
  159.                set("_root.halbteam_" + math.round(count * 0.5) + "_" + subcount + "_id",thisid1);
  160.             }
  161.             else if(ranvar1 > ranvar2)
  162.             {
  163.                set("_root.halbmatch_" + math.round(count * 0.5) + "_" + subcount,thisname_a);
  164.                set("_root.halbteam_" + math.round(count * 0.5) + "_" + subcount + "_id",thisid1);
  165.             }
  166.             else
  167.             {
  168.                set("_root.halbmatch_" + math.round(count * 0.5) + "_" + subcount,thisname_b);
  169.                set("_root.halbteam_" + math.round(count * 0.5) + "_" + subcount + "_id",thisid2);
  170.             }
  171.          }
  172.          while(count < 4);
  173.          
  174.          count = 0;
  175.          subcount = 0;
  176.          do
  177.          {
  178.             count += 1;
  179.             subcount += 1;
  180.             if(subcount > 2)
  181.             {
  182.                subcount = 1;
  183.             }
  184.             thisid1 = eval("_root.halbteam_" + count + "_1_id");
  185.             check_a = eval("/:teamArray")[thisid1];
  186.             thisname_a = check_a[name_lang];
  187.             power_a = check_a[4];
  188.             thisid2 = eval("_root.halbteam_" + count + "_2_id");
  189.             check_b = eval("/:teamArray")[thisid2];
  190.             thisname_b = check_b[name_lang];
  191.             power_b = check_b[4];
  192.             do
  193.             {
  194.                ranvar1 = random(4 + power_a * 2);
  195.                ranvar2 = random(4 + power_b * 2);
  196.             }
  197.             while(ranvar1 == ranvar2);
  198.             
  199.             if(eval("/:player1nation_id") == thisid1)
  200.             {
  201.                set("_root.finale_" + math.round(count * 0.5) + "_" + subcount,thisname_a);
  202.                set("_root.finalteam_" + math.round(count * 0.5) + "_" + subcount + "_id",thisid1);
  203.             }
  204.             else if(ranvar1 > ranvar2)
  205.             {
  206.                set("_root.finale_" + math.round(count * 0.5) + "_" + subcount,thisname_a);
  207.                set("_root.finalteam_" + math.round(count * 0.5) + "_" + subcount + "_id",thisid1);
  208.             }
  209.             else
  210.             {
  211.                set("_root.finale_" + math.round(count * 0.5) + "_" + subcount,thisname_b);
  212.                set("_root.finalteam_" + math.round(count * 0.5) + "_" + subcount + "_id",thisid2);
  213.             }
  214.          }
  215.          while(count < 2);
  216.          
  217.          thisid1 = _root.finalteam_1_1_id;
  218.          check_a = eval("/:teamArray")[thisid1];
  219.          thisname_a = check_a[name_lang];
  220.          power_a = check_a[4];
  221.          thisid2 = _root.finalteam_1_2_id;
  222.          check_b = eval("/:teamArray")[thisid2];
  223.          thisname_b = check_b[name_lang];
  224.          power_b = check_b[4];
  225.          do
  226.          {
  227.             ranvar1 = random(4 + power_a * 2);
  228.             ranvar2 = random(4 + power_b * 2);
  229.          }
  230.          while(ranvar1 == ranvar2);
  231.          
  232.          if(eval("/:player1nation_id") == thisid1)
  233.          {
  234.             set("/:champion",thisname_a);
  235.             set("/:champion_id",thisid1);
  236.          }
  237.          else if(ranvar1 > ranvar2)
  238.          {
  239.             set("/:champion",thisname_a);
  240.             set("/:champion_id",thisid1);
  241.          }
  242.          else
  243.          {
  244.             set("/:champion",thisname_b);
  245.             set("/:champion_id",thisid2);
  246.          }
  247.       }
  248.       break;
  249.    }
  250.    if(eval("\x01") == 492)
  251.    {
  252.       set("\x01",eval("\x01") - 273);
  253.       if(┬º┬ºpop())
  254.       {
  255.          set("\x01",eval("\x01") + 766);
  256.       }
  257.       continue;
  258.    }
  259.    if(eval("\x01") == 404)
  260.    {
  261.       set("\x01",eval("\x01") + 429);
  262.       ┬º┬ºpush(true);
  263.       continue;
  264.    }
  265.    if(eval("\x01") == 833)
  266.    {
  267.       set("\x01",eval("\x01") - 596);
  268.       if(┬º┬ºpop())
  269.       {
  270.          set("\x01",eval("\x01") + 256);
  271.       }
  272.       continue;
  273.    }
  274.    if(eval("\x01") == 499)
  275.    {
  276.       set("\x01",eval("\x01") + 488);
  277.       if(┬º┬ºpop())
  278.       {
  279.          set("\x01",eval("\x01") - 583);
  280.       }
  281.       continue;
  282.    }
  283.    if(eval("\x01") == 847)
  284.    {
  285.       set("\x01",eval("\x01") - 256);
  286.       if(┬º┬ºpop())
  287.       {
  288.          set("\x01",eval("\x01") - 240);
  289.       }
  290.       continue;
  291.    }
  292.    if(eval("\x01") == 691)
  293.    {
  294.       set("\x01",eval("\x01") - 691);
  295.       break;
  296.    }
  297.    if(eval("\x01") == 219)
  298.    {
  299.       set("\x01",eval("\x01") + 766);
  300.       break;
  301.    }
  302.    if(eval("\x01") == 237)
  303.    {
  304.       set("\x01",eval("\x01") + 256);
  305.       break;
  306.    }
  307.    if(eval("\x01") == 987)
  308.    {
  309.       set("\x01",eval("\x01") - 583);
  310.       break;
  311.    }
  312.    if(eval("\x01") == 351)
  313.    {
  314.       set("\x01",eval("\x01") + 148);
  315.       ┬º┬ºpush(true);
  316.       continue;
  317.    }
  318.    if(eval("\x01") == 286)
  319.    {
  320.       set("\x01",eval("\x01") + 179);
  321.       if(┬º┬ºpop())
  322.       {
  323.          set("\x01",eval("\x01") + 72);
  324.       }
  325.       continue;
  326.    }
  327.    if(eval("\x01") == 465)
  328.    {
  329.       set("\x01",eval("\x01") + 72);
  330.       stop();
  331.       break;
  332.    }
  333.    if(eval("\x01") == 591)
  334.    {
  335.       set("\x01",eval("\x01") - 240);
  336.       break;
  337.    }
  338.    if(eval("\x01") == 853)
  339.    {
  340.       set("\x01",eval("\x01") - 6);
  341.       ┬º┬ºpush(true);
  342.       continue;
  343.    }
  344.    if(eval("\x01") != 149)
  345.    {
  346.       if(eval("\x01") != 537)
  347.       {
  348.          break;
  349.       }
  350.       set("\x01",eval("\x01") - 414);
  351.       ┬º┬ºpush(true);
  352.       continue;
  353.    }
  354.    set("\x01",eval("\x01") + 704);
  355.    loop1:
  356.    while(true)
  357.    {
  358.       set(┬º┬ºpop(),┬º┬ºpop() - ┬º┬ºpop());
  359.       loop2:
  360.       while(true)
  361.       {
  362.          while(true)
  363.          {
  364.             if(eval("\x01") == 800)
  365.             {
  366.                set("\x01",eval("\x01") - 277);
  367.                ┬º┬ºpush(true);
  368.             }
  369.             else
  370.             {
  371.                if(eval("\x01") == 623)
  372.                {
  373.                   set("\x01",eval("\x01") + 78);
  374.                   if(eval("/:pause") != 1)
  375.                   {
  376.                      set("/:p1nation",test2);
  377.                      set("../:selected",1);
  378.                      _parent.play();
  379.                   }
  380.                   break loop0;
  381.                }
  382.                if(eval("\x01") == 209)
  383.                {
  384.                   set("\x01",eval("\x01") + 553);
  385.                   if(┬º┬ºpop())
  386.                   {
  387.                      set("\x01",eval("\x01") - 730);
  388.                   }
  389.                }
  390.                else if(eval("\x01") == 395)
  391.                {
  392.                   set("\x01",eval("\x01") - 161);
  393.                   ┬º┬ºpush(true);
  394.                }
  395.                else
  396.                {
  397.                   if(eval("\x01") == 739)
  398.                   {
  399.                      set("\x01",eval("\x01") - 680);
  400.                      break loop0;
  401.                   }
  402.                   if(eval("\x01") == 605)
  403.                   {
  404.                      set("\x01",eval("\x01") - 268);
  405.                      if(┬º┬ºpop())
  406.                      {
  407.                         set("\x01",eval("\x01") + 58);
  408.                      }
  409.                   }
  410.                   else
  411.                   {
  412.                      if(eval("\x01") == 337)
  413.                      {
  414.                         set("\x01",eval("\x01") + 58);
  415.                         gotoAndStop("-v∩┐╜\r\x1b\x14∩┐╜f∩┐╜VEYY\x14∩┐╜∩┐╜\"∩┐╜∩┐╜&∩┐╜WB\\∩┐╜\x1e∩┐╜∩┐╜!\b\x04L∩┐╜Ω¢⌐o∩┐╜;\x0f-╞î∩É╛∩┐╜df∩┐╜<ya∩┐╜∩┐╜o∩┐╜}┬¬∩┐╜0+∩┐╜∩┐╜∩┐╜3∩┐╜∩┐╜▄⌐∩┐╜∩┐╜∩┐╜\fy∩┐╜\x1b;∩┐╜∩┐╜G∩┐╜∩┐╜Z∩┐╜$N∩┐╜D$\x17 ∩┐╜r∩┐╜+∩┐╜∩┐╜\x04∩┐╜∩┐╜∩┐╜∩┐╜∩┐╜\x11∩┐╜$\r\r∩┐╜\'∩┐╜∩┐╜i∩┐╜{H∩┐╜∩┐╜4∩┐╜∩┐╜∩┐╜s∩┐╜∩┐╜Q∩┐╜∩┐╜/#n∩┐╜h-∩┐╜\x12∩┐╜\x0b∩┐╜∩┐╜O∩┐╜∩┐╜.s_>F∩┐╜$\x18,\x11sk┬¥<∩┐╜∩┐╜\x1c∩┐╜∩┐╜|∩┐╜X∩┐╜∩┐╜\x1e∩┐╜∩┐╜3∩┐╜q∩┐╜∩┐╜2∩┐╜h∩┐╜∩┐╜╬¬\x1eeJ[@fU∩┐╜G4∩┐╜\x0ev∩┐╜∩┐╜∩┐╜@∩┐╜∩┐╜∩┐╜S∩┐╜∩┐╜∩┐╜J∩┐╜M∩┐╜∩┐╜Σ╜é∩┐╜∩┐╜Cy∩┐╜∩┐╜3X ∩┐╜∩┐╜G∩┐╜∩┐╜∩┐╜PV.∩┐╜\x15∩┐╜∩┐╜|\\∩┐╜∩┐╜∩┐╜h∩┐╜\x1awV∩┐╜∩┐╜\x1e∩┐╜∩┐╜∩┐╜∩┐╜∩┐╜∩┐╜d∩┐╜&∩┐╜∩┐╜M∩┐╜∩┐╜c^∩┐╜╦⌐╬½∩┐╜q∩┐╜\x01∩┐╜d]$A▌»∩┐╜-^∩┐╜∩┐╜∩┐╜∩┐╜∩┐╜\x17∩┐╜\'∩┐╜x∩┐╜∩┐╜\x16∩┐╜c?∩┐╜∩┐╜∩┐╜∩┐╜∩┐╜g(∩┐╜q\x1b∩┐╜∩┐╜ 3\r∩┐╜∩┐╜╓╣V∩┐╜jwW╧Ñ\bC∩┐╜∩┐╜h{>╤¡\x1f∩┐╜∩┐╜Gr∩┐╜─ù∩┐╜∩┐╜∩┐╜8J∩┐╜\x154∩┐╜∩┐╜\x1fx∩┐╜∩┐╜∩┐╜∩┐╜∩┐╜∩┐╜∩┐╜%∩┐╜\x18\x03∩┐╜∩┐╜∩┐╜∩┐╜∩┐╜_??5∩┐╜╔»∩┐╜∩┐╜h∩┐╜?∩┐╜\x1f2∩┐╜∩┐╜\x1a\x1a∩┐╜\x12∩┐╜\x1a\x1a∩┐╜\x18∩┐╜\x17∩┐╜∩┐╜∩┐╜∩┐╜\x1a\x1a∩┐╜\x13_\x01O∩┐╜∩┐╜∩┐╜∩┐╜");
  416.                         break loop0;
  417.                      }
  418.                      if(eval("\x01") == 153)
  419.                      {
  420.                         break loop2;
  421.                      }
  422.                      if(eval("\x01") == 234)
  423.                      {
  424.                         set("\x01",eval("\x01") - 81);
  425.                         if(┬º┬ºpop())
  426.                         {
  427.                            set("\x01",eval("\x01") + 470);
  428.                         }
  429.                      }
  430.                      else
  431.                      {
  432.                         if(eval("\x01") == 701)
  433.                         {
  434.                            set("\x01",eval("\x01") - 701);
  435.                            break loop0;
  436.                         }
  437.                         if(eval("\x01") == 59)
  438.                         {
  439.                            set("\x01",eval("\x01") + 150);
  440.                            ┬º┬ºpush(true);
  441.                         }
  442.                         else
  443.                         {
  444.                            if(eval("\x01") == 762)
  445.                            {
  446.                               set("\x01",eval("\x01") - 730);
  447.                               break loop0;
  448.                            }
  449.                            if(eval("\x01") == 523)
  450.                            {
  451.                               break;
  452.                            }
  453.                            if(eval("\x01") != 32)
  454.                            {
  455.                               break loop0;
  456.                            }
  457.                            set("\x01",eval("\x01") + 573);
  458.                            ┬º┬ºpush(true);
  459.                         }
  460.                      }
  461.                   }
  462.                }
  463.             }
  464.          }
  465.          set("\x01",eval("\x01") + 216);
  466.          if(!┬º┬ºpop())
  467.          {
  468.             continue;
  469.          }
  470.          continue loop1;
  471.       }
  472.       set("\x01",eval("\x01") + 470);
  473.       break loop0;
  474.    }
  475. }
  476.